import { createApp } from "vue";
import App from "./App.vue";
import router from "./router/index.js";
// import Vue from 'vue';
import { Button, Tab, Tabs,Loading,Tabbar, TabbarItem,List,Cell,DropdownMenu,DropdownItem,Search,IndexBar, IndexAnchor,Empty } from "vant";
import {Collapse, CollapseItem,Popup ,Dialog,NavBar,Icon,Swipe, SwipeItem }from "vant"
import "vant/lib/index.css";

import axios from "axios";
import { createPinia } from 'pinia'

import "./axios/config"


const app = createApp(App);
// const store = userLoginStore()
app.use(router);
// app.use(store)
app.use(Button).use(Tab).use(Tabs).use(Loading).use(Tabbar).use(TabbarItem).use(List).use(Cell).use(Empty)
app.use(createPinia()).use(DropdownItem).use(DropdownMenu).use(Search).use(IndexAnchor).use(IndexBar)
app.use(Collapse).use(CollapseItem).use(Popup).use(Dialog).use(NavBar).use(Icon).use(Swipe).use(SwipeItem)
app.mount("#app");
app.config.globalProperties.$axios = axios; // axios全局引用
